package com.example.andro40test;

import com.parse.Parse;
import com.parse.ParseACL;
import com.parse.ParseUser;
import com.parse.PushService;

import android.app.Application;

public class BadHouseApplication extends Application {
	
	@Override
	public void onCreate() {
		super.onCreate();

		// parse initial
		Parse.initialize(this, "yhXbS3vbsaw1qgoLMzpYJrA3ZRkWhpvODOpExWml", "Dr6fzm1QQMI7QuFC6yorrf02avzn2rk6lmaIoMcg");


		ParseUser.enableAutomaticUser();
		
		ParseACL defaultACL = new ParseACL();
		// Optionally enable public read access.
		// defaultACL.setPublicReadAccess(true);
		ParseACL.setDefaultACL(defaultACL, true);
		
		// setup for push notification
		PushService.setDefaultPushCallback(this, MainActivity.class);
	}

}
